<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="0" />
<title>收文委派</title>
<%@ include file="/common/extjs.jsp"%>
<script type="text/javascript"
	src="<c:url value='/ext/ux/FieldLabeler.js'/>" charset="utf-8"></script>
<script type="text/javascript">
	function checkUser() {
		var win = new Ext.Window(
				{
					title : '选择用户',
					id : 'sendMessageWindow',
					iconCls : 'form-edit-icon',
					width : 600,
					height : 400,
					modal : true,
					resizable : false,
					closeAction : 'close',
					closable : true,
					plain : true,
					// 弹出模态窗体
					buttonAlign : "center",
					html : "<iframe name='sendMessageIframe' height='100%' width='100%' src='"
							+ appConfig.contPath
							+ "/account/json/userchoose.action' frameborder=0 scrolling=no  ></iframe>"
				});
		win.show();
	}

	function setReceiveUserValue(itemselector) {
		$("input[name='userId']").val(itemselector);
	}
</script>
</head>
<body>
	<h1>收文委派</h1>
	<form action="received_art!rdelegate.action" class="yform"
		method="post" id="delegate">
		<input type="hidden" id="taskId" name="taskId" value="${taskId }">
		<table>
			<tr class="type-text">
				<td>委派人</td>
				<td><input type="text" name="userId" id="userId"><input
					type="button" id="check" name="check" value="选择拟办人员"
					onclick="checkUser()"></td>
			</tr>
			<tr>
				<td colspan="2">
					<div class="type-button">
						<security:authorize ifAnyGranted="ROLE_修改用户">
							<input type="submit" id="pass" name="pass" value="提交" />&nbsp;
						</security:authorize>
						<input   type="button" value="返回"
							onclick="history.back()" />
					</div></td>
			</tr>
		</table>
	</form>
</body>
</html>